package com.fcscs.cservice.communication;

import java.io.Serializable;
import java.util.Map;

import com.fcscs.share.util.ApplicationProperties;

public interface CommIntfAdaptor {
	
	enum CommParam {
		DEVICE(String.class),
		TITLE(String.class),
		FONT_SIZE(Integer.class),
		MSG_TYPE(String.class),
		PROP_IP(String.class),
		;
		
		private Class<? extends Serializable> cls;
		private CommParam(Class<? extends Serializable> cls) {
			this.cls = cls;
		}
		
		public Class<? extends Serializable> getParamClass() {
			return cls;
		}
	}

	static final Integer DEFAULT_FONT_SIZE = ApplicationProperties.getProperty(ApplicationProperties.Props.FONT_SIZE, Integer.class);

	byte[] transport(byte[] data, Map<CommParam, Serializable> params);
}
